/*
 * Output.h
 *
 *  Created on: 2012. 11. 4.
 *      Author: dalxx
 */

#include "PLCConfig.h"
#include "Relay.h"
#ifndef OUTPUT_H_
#define OUTPUT_H_

namespace PLCLib {

struct Output
{
	int outPin;
	bool* status;
};

class OutputList {
protected:
	Output* outputList;
	int numOutput;
public:
	OutputList();
	~OutputList();
	void init(int num_output);
	void removeAll();
	void setOutput(int index, uint8_t pin, bool* status);

	void Out();

};



} /* namespace PLCLib */
#endif /* OUTPUT_H_ */
